package com.ssy.lingxi.workflow.api.model.vo.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 流程步骤关联的会员自定义角色VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-11-19
 */
public class ProcessMemberRoleVO implements Serializable {
    private static final long serialVersionUID = 8339765626446915593L;

    /**
     * 会员Id
     */
    @NotNull(message = "会员Id要大于0")
    @Positive(message = "会员Id要大于0")
    private Long memberId;

    /**
     * 会员自定义角色Id
     */
    @NotNull(message = "会员自定义角色Id要大于0")
    @Positive(message = "会员自定义角色Id要大于0")
    private Long memberRoleId;

    /**
     * 会员自定义角色名称
     */
    @NotBlank(message = "会员自定义角色名称不能为空")
    private String memberRoleName;

    /**
     * 会员自定义角色的权限菜单Url列表
     */
    @NotEmpty(message = "会员自定义角色的权限菜单Url列表不能为空")
    private List<AuthUrlVO> urls;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberRoleId() {
        return memberRoleId;
    }

    public void setMemberRoleId(Long memberRoleId) {
        this.memberRoleId = memberRoleId;
    }

    public String getMemberRoleName() {
        return memberRoleName;
    }

    public void setMemberRoleName(String memberRoleName) {
        this.memberRoleName = memberRoleName;
    }

    public List<AuthUrlVO> getUrls() {
        return urls;
    }

    public void setUrls(List<AuthUrlVO> urls) {
        this.urls = urls;
    }
}
